package cn.com.w.dao.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
/**
 * <p>
 * 角色权限表
 * </p>
 *
 * @author wangJK
 * @since 2025-04-25
 */
@Getter
@Setter
@ToString
@TableName("sys_role_permission")
//@ApiModel(value = "SysRolePermission对象", description = "角色权限表")
public class SysRolePermission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    //@ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 角色id
     */
    @TableField("role_id")
    //@ApiModelProperty("角色id")
    private Long roleId;

    /**
     * 权限id
     */
    //@ApiModelProperty("权限id")
    @TableField("permission_id")
    private Long permissionId;

    public static final String ID = "id";

    public static final String ROLE_ID = "role_id";

    public static final String PERMISSION_ID = "permission_id";
}
